/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 *
 * @file:   Zhibo.js
 * @path:   js-src/album/
 * @author: karkarrotxu@qiyi.com
 * @date:   2016-03-01
 */
qui(
    function(require, exports, module) {
        window.Zhibo = window.Zhibo || {
            version: '1.0'
        };
        Zhibo.Constant = {
            baseApiUrl:(auth.dev() ? "http://10.23.70.33:7000/":"http://dot.live.qiyi.domain/"),
            thirdUrl_liveList_monitor :"http://lego.iqiyi.com/live2VOD/liveList/monitor",
            thirdUrl_query_user:"http://lego.iqiyi.com/external/auth/auth-api/services/user/search",
            epgBaseApiUrl: "/api/",
            devMode: auth.dev()
        }

        Zhibo.urlConfig = (function () {
            var useUrl = Zhibo.Constant.baseApiUrl;
            var modify = useUrl+"v1/channel/modify";
            var channel = useUrl+"v1/channel";
            var machinelist= useUrl+"v1/channel/machinelist";
            var machinemodify = useUrl + "v1/channel/machinemodify";
            var ipServerTemp = "http://@ipServer:8080/";
            var dotLoad = ipServerTemp + "dot/load?from_client=true";
            var version = ipServerTemp + "version";
            var channelInfo = ipServerTemp + "channel/channelinfo";
            var submitLogUrl = Zhibo.Constant.epgBaseApiUrl+"vod/saveLog";
            var logListUrl = Zhibo.Constant.epgBaseApiUrl+"vod/logList";
            var logListFilterUrl = Zhibo.Constant.epgBaseApiUrl+"vod/logList/filter";
            var recordListUrl = Zhibo.Constant.epgBaseApiUrl+"vod/vodRecord/getList";
            var recordEditUrl = Zhibo.Constant.epgBaseApiUrl+"vod/vodRecord/edit";
            var recordAddUrl = Zhibo.Constant.epgBaseApiUrl+"vod/vodRecord/add";
            var recordDelUrl = Zhibo.Constant.epgBaseApiUrl+"vod/vodRecord/del";
            return {
                modifyUrl:modify,
                machinemodifyUrl:machinemodify,
                channelUrl:channel,
                machinelistUrl:machinelist,
                dotLoadUrl:dotLoad,
                versionUrl:version,
                channelInfoUrl:channelInfo,
                submitLogUrl:submitLogUrl,
                logListUrl:logListUrl,
                recordListUrl:recordListUrl,
                recordEditUrl:recordEditUrl,
                recordAddUrl:recordAddUrl,
                recordDelUrl:recordDelUrl,
                logListFilterUrl:logListFilterUrl
            }
        })()
    }
);